package collection;

import java.util.Arrays;
import java.util.List;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/2
 **/
public class ArrayToListDemo {
    public static void main(String[] args) {
        String[]array={"a","b","c","d","e","f","g","i"};
        System.out.println("array:"+Arrays.toString(array));
        List<String> o = Arrays.asList(array);
        System.out.println("list:"+o);
        array[2]="3";
        System.out.println("array:"+Arrays.toString(array));
        System.out.println("list:"+o);

    }
}
